//
//  NearFunCell.m
//  LoveTourism
//
//  Created by qianfeng0 on 16/6/25.
//  Copyright © 2016年 王超. All rights reserved.
//

#import "NearFunCell.h"
#import "NearFunModel.h"
#import <UIImageView+WebCache.h>

@interface NearFunCell ()

@property (weak, nonatomic) IBOutlet UIImageView *PicimageView;
@property (weak, nonatomic) IBOutlet UILabel *TitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *PlaceLabel;
@property (weak, nonatomic) IBOutlet UILabel *PriceLabel;

@end
@implementation NearFunCell

- (void)setModel:(NearFunModel *)model {
    
    _model = model;
    
    _TitleLabel.text = model.Title;
    _PlaceLabel.text = [NSString stringWithFormat:@"地点:%@",model.Destination];
    _PriceLabel.text = [NSString stringWithFormat:@"￥%@起",model.Price];
    
    [_PicimageView sd_setImageWithURL:[NSURL URLWithString:model.ImgSrc] placeholderImage:[UIImage imageNamed:@"placeholder@2x"]];
    //对图片经行切圆角
    _PicimageView.layer.cornerRadius = 10;
    _PicimageView.layer.masksToBounds = YES;
    
}

@end
